cc=g++
CFLAG= -std=c++17
LFLAG= -lbrpc -lleveldb -lgflags -lssl -lcrypto -lprotobuf
.PHONY: all
all: server client
server : server.cc main.pb.cc
	$(cc) -o $@ $^ $(CFLAG) $(LFLAG)
client : client.cc main.pb.cc
	$(cc) -o $@ $^ $(CFLAG) $(LFLAG)

.PHONY:clean
clean:
	rm -f server client